<template>

</template>

<script>
export default {
  data() {
    return {
    };
  },
  methods: {
    onSubmit() {
      if (!this.form.name) {
        this.$message.error('Activity name is required.');
        return;
      }
      setTimeout(() => {
        this.$message({
          message: 'Activity created successfully!',
          type: 'success',
        });

      }, 1000);
    },
    onCancel() {
      this.form = {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      };
      this.$message({
        message: 'Form cancelled.',
        type: 'warning'
      });
    }
  }
};
</script>

<style scoped>
</style>
